package com.liuyh.demo.serviceconsumer.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
@RefreshScope
public class ConsumerConfig {

    @Value("${ConsumerDemo.name:}")
    private String name;

    public String getName(){
        return  name;
    }

}
